<!DOCTYPE html>
<html>
#{include file="header.html"}#
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5><i class="fa fa-home"></i> 多维度汇总列表</h5>
                    <div class="ibox-tools"></div>
                </div>
                <div class="ibox-content table-responsive">
                    <div class="row">
                        <form id="pagerForm" method="post" class="form-inline"
                            action="#{$smarty.const.ACT}#/erp/ChartDime/chart_dime_show/">
                            <div class="col-sm-3 m-b-xs"><a href="?">
                                <button type="button" class="btn btn-default"><i class="fa fa-refresh"></i>刷新</button>
                            </a></div>
                            <div class="col-sm-9 m-b-xs text-right"> 录入日期：
                                <div class="input-group pd-b-5">
                                    <input type="text" name="create_date_b" class="form-control datepicker"
                                        style="width: 100px;" value="#{$create_date_b}#">
                                </div>
                                <div class="input-group pd-b-5">
                                    <input type="text" name="create_date_e" class="form-control datepicker"
                                        style="width: 100px;" value="#{$create_date_e}#">
                                </div>
                                <div class="input-group"> <span class="input-group-btn">
                  <button type="submit" class="btn btn-primary ajaxSearchForm"><i class="fa fa-search"></i> 搜索</button>
                  </span></div>
                            </div>
                        </form>
                    </div>
                    <div class="row">
                        <div class="col-sm-12">
                            <div class="ibox float-e-margins">
                                <div class="ibox-title">
                                    <h5>概要统计</h5>
                                </div>
                                <div class="ibox-content no-padding">
                                    <table class="table table-hover" width="100%">
                                        <thead>
                                        <tr>
                                            <th></th>
                                            <th>今天</th>
                                            <th>7天</th>
                                            <th>1个月</th>
                                            <th>所有时间</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr>
                                            <td>新增客户</td>
                                            <td>#{$customer.today.total_num}#</td>
                                            <td>#{$customer.seven.total_num}#</td>
                                            <td>#{$customer.month.total_num}#</td>
                                            <td>#{$customer.all.total_num}#</td>
                                        </tr>
                                        <tr>
                                            <td>跟单记录</td>
                                            <td>#{$trace.today.total_num}#</td>
                                            <td>#{$trace.seven.total_num}#</td>
                                            <td>#{$trace.month.total_num}#</td>
                                            <td>#{$trace.all.total_num}#</td>
                                        </tr>
                                        <tr>
                                            <td>新增合同</td>
                                            <td>#{$contract.today.total_num}#</td>
                                            <td>#{$contract.seven.total_num}#</td>
                                            <td>#{$contract.month.total_num}#</td>
                                            <td>#{$contract.all.total_num}#</td>
                                        </tr>
                                        <tr>
                                            <td>合同总金额</td>
                                            <td>#{$contract.today.total_money|string_format:"%d"}#</td>
                                            <td>#{$contract.seven.total_money|string_format:"%d"}#</td>
                                            <td>#{$contract.month.total_money|string_format:"%d"}#</td>
                                            <td>#{$contract.all.total_money|string_format:"%d"}#</td>
                                        </tr>
                                        <tr>
                                            <td>回款总金额</td>
                                            <td>#{$contract.today.total_back_money|string_format:"%d"}#</td>
                                            <td>#{$contract.seven.total_back_money|string_format:"%d"}#</td>
                                            <td>#{$contract.month.total_back_money|string_format:"%d"}#</td>
                                            <td>#{$contract.all.total_back_money|string_format:"%d"}#</td>
                                        </tr>
                                        <tr>
                                            <td>去零总金额</td>
                                            <td class="text-danger">#{$contract.today.total_zero_money|string_format:"%d"}#</td>
                                            <td class="text-danger">#{$contract.seven.total_zero_money|string_format:"%d"}#</td>
                                            <td class="text-danger">#{$contract.month.total_zero_money|string_format:"%d"}#</td>
                                            <td class="text-danger">#{$contract.all.total_zero_money|string_format:"%d"}#</td>
                                        </tr>
                                        <tr>
                                            <td>未收总金额</td>
                                            <td class="text-danger">#{$contract.today.total_owe_money|string_format:"%d"}#</td>
                                            <td class="text-danger">#{$contract.seven.total_owe_money|string_format:"%d"}#</td>
                                            <td class="text-danger">#{$contract.month.total_owe_money|string_format:"%d"}#</td>
                                            <td class="text-danger">#{$contract.all.total_owe_money|string_format:"%d"}#</td>
                                        </tr>
                                        <tr>
                                            <td>交付总金额</td>
                                            <td class="text-danger">#{$contract.today.total_deliver_money|string_format:"%d"}#</td>
                                            <td class="text-danger">#{$contract.seven.total_deliver_money|string_format:"%d"}#</td>
                                            <td class="text-danger">#{$contract.month.total_deliver_money|string_format:"%d"}#</td>
                                            <td class="text-danger">#{$contract.all.total_deliver_money|string_format:"%d"}#</td>
                                        </tr>
                                        <tr>
                                            <td>开票总金额</td>
                                            <td class="text-danger">#{$contract.today.total_invoice_money|string_format:"%d"}#</td>
                                            <td class="text-danger">#{$contract.seven.total_invoice_money|string_format:"%d"}#</td>
                                            <td class="text-danger">#{$contract.month.total_invoice_money|string_format:"%d"}#</td>
                                            <td class="text-danger">#{$contract.all.total_invoice_money|string_format:"%d"}#</td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
<script src="#{$smarty.const.APP}#/View/template/js/content.js?v=1.0.0"></script>